﻿using Pathfinding;
using Pathfinding.RVO;
using UnityEngine;

namespace NpcFramework
{
    public class RichNpcSeeker : NpcSeeker
    {
        public Seeker Seeker;
        public RichAI RichAI;
        public CharacterController CharacterController;

        public RVOController RvoController;
        
        public override bool ReachedEndOfPath()
        {
            return RichAI.reachedEndOfPath;
        }

        public override void SetDestination(Vector3 destination)
        {
            base.SetDestination(destination);
            RichAI.destination = destination;
        }

        public override void SetMaxSpeed(float speed)
        {
            RichAI.maxSpeed = speed;
        }
    }
}
